package net.sxnic.jhitem.itemoperation;

import net.sxinfo.core.entity.AbstractEntity;

import javax.persistence.*;

import org.hibernate.annotations.BatchSize;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Cascade;
import org.springframework.core.annotation.Order;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;


@Entity
@Table(name = "jh_item_operation")
@BatchSize(size = 10)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class ItemOperation extends AbstractEntity {
	
	private static final long serialVersionUID = 1L;
	

	//columns START
	// 大类别（临汾市科技局）
	@Column(length=20)
	private String catalog1;
	// 小类别（计划项目申报）
	@Column(length=20)
	private String catalog2;
	// 计划类别编码
	@Order
	@Column(length=20)
	private String soperCode;
	// 计划类别全称（临汾市科技攻关计划）
	private String soperName;
	// 计划类别简称（工业公关）
	private String soperShortname;
	// 计划类别对应的处室（编码，采用三级联动下拉选择）
	@Column(length=20)
	private String department;
	// 页面路径
	private String pagePath;
	// 备注
	private String remark;
	//columns END

	
	public ItemOperation()
	{
		super();
	}
	
	public String getCatalog1() {
		return this.catalog1;
	}
	
	public void setCatalog1(String value) {
		this.catalog1 = value;
	}
	
	public String getCatalog2() {
		return this.catalog2;
	}
	
	public void setCatalog2(String value) {
		this.catalog2 = value;
	}
	
	public String getSoperCode() {
		return this.soperCode;
	}
	
	public void setSoperCode(String value) {
		this.soperCode = value;
	}
	
	public String getSoperName() {
		return this.soperName;
	}
	
	public void setSoperName(String value) {
		this.soperName = value;
	}
	
	public String getSoperShortname() {
		return this.soperShortname;
	}
	
	public void setSoperShortname(String value) {
		this.soperShortname = value;
	}
	
	public String getDepartment() {
		return this.department;
	}
	
	public void setDepartment(String value) {
		this.department = value;
	}
	
	public String getPagePath() {
		return this.pagePath;
	}
	
	public void setPagePath(String value) {
		this.pagePath = value;
	}
	
	public String getRemark() {
		return this.remark;
	}
	
	public void setRemark(String value) {
		this.remark = value;
	}
	
}

